/**
 * 
 */
package com.bagtrack.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.bagtrack.dao.IFlightDAO;
import com.bagtrack.model.Flight;
import com.bagtrack.service.IFlightService;


/**
 *
 * @author Brian Boyle
 * Nov 15, 2011
 */
public class FlightServiceImpl implements IFlightService {

    @Autowired
    private IFlightDAO flightDAO;

    public void setFlightDAO(IFlightDAO flightDAO) {
        this.flightDAO = flightDAO;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public List<Flight> getActiveFlights() {
        return flightDAO.selectActiveFlights();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public Flight getFlightById(Long id) {
        return flightDAO.selectFlightById(id);
    }

}
